package business.report.impl;

import business.report.WaterPermitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.WaterPermit;
import report.domain.WaterPermitCriteria;
import report.mapper.WaterPermitMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "waterPermitService")
public class WaterPermitServiceImpl implements WaterPermitService{
    @Autowired
    WaterPermitMapper waterPermitMapper;

    @Override
    public List<WaterPermit> getWaterPermit() {
        WaterPermitCriteria criteria = new WaterPermitCriteria();
        criteria.createCriteria().getAllCriteria();
        return waterPermitMapper.selectByExample(criteria);
    }
}
